package com.cityguardian.utils;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class CityPreferences extends PreferenceActivity {
	public static final String PREFS_NAME = "CityPreferences";
	
	@Override
    protected void onCreate(Bundle state){
       super.onCreate(state);
       // Restore preferences
       SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
       //TODO CAMBIAR
       settings.toString();
    }

    @Override
    protected void onStop(){
       super.onStop();

      // We need an Editor object to make preference changes.
      // All objects are from android.context.Context
      SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
      SharedPreferences.Editor editor = settings.edit();
      editor.putBoolean("silentMode", true);

      // Commit the edits!
      editor.commit();
    }
    
	@Override
	protected void onDestroy() { 

	    super.onDestroy();
	}
}
